package org.soft.xinyu.equipmentmanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author vicente
 * @since 2021-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MachineFile extends Model<MachineFile> {

    private static final long serialVersionUID = 1L;

    /**
     * 文件表唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文件名称
     */
    private String name;

    /**
     * 文件路径
     */
    private String path;

    /**
     * 文件所属设备类型
     */
    private Integer type;

    /**
     * 上传时间
     */
    private String createTime;

    /**
     * 所属机器
     */
    private String machineId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
